package com.huahua.api.entity.pojo;

import com.baomidou.mybatisplus.annotation.*;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.Date;
import lombok.Data;

/**
 * @author LoveHuahua
 * @date 2021年09月05日 17:00
 * @description believe in yourself
 */
@Data
@TableName(value = "api_holiday")
public class ApiHoliday {
    /**
     * id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 节日名
     */
    @TableField(value = "`name`")
    private String name;

    /**
     * 描述
     */
    @TableField(value = "`desc`")
    private String desc;

    /**
     * 类型(节日或纪念日)
     */
    @TableField(value = "`type`")
    private int type;

    /**
     * 年份
     */
    @TableField(value = "`year`")
    private Integer year;

    /**
     * 月份
     */
    @TableField(value = "`month`")
    private Integer month;

    /**
     * 第几天
     */
    @TableField(value = "`day`")
    private Integer day;

    /**
     * 星期几
     */
    @TableField(value = "week")
    private Integer week;

    /**
     * 假日时间
     */
    @TableField(value = "holiday_time")
    private LocalDate holidayTime;

    /**
     * 创建时间
     */
    @TableField(value = "create_time",fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    @TableField(value = "update_time",fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

    /**
     * 国家
     */
    @TableField(value = "country")
    private Integer country;

    @TableField(value = "remove_flag")
    @TableLogic
    private Integer removeFlag;

    public static final String COL_ID = "id";

    public static final String COL_NAME = "name";

    public static final String COL_DESC = "desc";

    public static final String COL_TYPE = "type";

    public static final String COL_YEAR = "year";

    public static final String COL_MONTH = "month";

    public static final String COL_DAY = "day";

    public static final String COL_WEEK = "week";

    public static final String COL_HOLIDAY_TIME = "holiday_time";

    public static final String COL_CREATE_TIME = "create_time";

    public static final String COL_UPDATE_TIME = "update_time";

    public static final String COL_COUNTRY = "country";
}